home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / rpc.lha / dynload / loader.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  991b  |  41 lines

  1. // Copyright (C) 1990 by Glenn Gribble; all rights are reserved.
  2. // This program may be used for any purposes including inclusion in
  3. // for profit programs.  If the source is copied, the copyright notice
  4. // must be included.  Please send bug fixes/reports to glenn@synaptics.com
  5. // This program is distributed without any warranty.
  6.  
  7. // -*- C++ -*-
  8. // %W% %G%
  9.  
  10. #ifndef LOADER_H
  11. #define LOADER_H
  12.  
  13. #ifndef bool
  14. #   define bool unsigned
  15. #endif    bool
  16.  
  17. #ifndef TRUE
  18. #   define TRUE 1
  19. #endif
  20.  
  21. #ifndef FALSE
  22. #   define FALSE 0
  23. #endif
  24.  
  25. extern void error(const char *fmt ...);
  26. extern void warn(const char *fmt ...);
  27. extern void info(const char *fmt ...);
  28.  
  29. extern int d_all;
  30. extern int d_relocation;
  31. extern int d_execs;
  32. extern int d_ctors;
  33. extern int d_relocation;
  34. extern int d_symbols;
  35.  
  36. extern void setArg0(const char *);        // Call with argv[0]
  37. extern bool loadFile(const char *fileName);    // Loads an object file
  38. extern long value(const char *sym, int bad=-1);    // Returns symbol value
  39.  
  40. #endif  LOADER_H
  41.